﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/philadmin/Philadmin.Master"
    CodeBehind="ViewZones.aspx.vb" Inherits="Phila.ViewZones1" %>

<%@ Register Assembly="RadGrid.Net2" Namespace="Telerik.WebControls" TagPrefix="radG" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h1>
        View Zones</h1>
        <asp:Label ID="lblMsg" runat="server" CssClass="message"></asp:Label>
    <%--<div class="actions">
        <a href="EditZone.aspx">Add Zone</a></div>
    <asp:GridView ID="gvZones" runat="server" ShowHeader="true" ShowFooter="true" AutoGenerateColumns="false"
        Width="100%" CssClass="grid">
        <Columns>
            <asp:BoundField HeaderText="Id" DataField="Id" />
            <asp:BoundField HeaderText="Name" DataField="Name" />
            <asp:BoundField HeaderText="Description" DataField="Description" />
            <asp:ImageField HeaderText="Image" DataImageUrlField="Thumbnail" DataImageUrlFormatString="~\Images\Img\{0}">
            </asp:ImageField>
            <asp:TemplateField HeaderText="Action">
                <ItemTemplate>
                    <asp:LinkButton ID="edit" runat="server" Text="Edit" CommandName="Edit" />
                    <asp:LinkButton ID="delete" runat="server" Text="Delete" CommandName="Delete" />
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>--%>
    <radG:RadGrid ID="radGrid" runat="server" Width="99%" PageSize="20" AllowSorting="True"
        AllowMultiRowSelection="False" Skin="Telerik" AllowPaging="True" ShowGroupPanel="True"
        AutoGenerateColumns="False" GridLines="None" EnableAJAX="true" EnableAJAXLoadingTemplate="true">
        <PagerStyle Mode="NextPrevNumericAndAdvanced"></PagerStyle>
        <MasterTableView Width="100%" GroupLoadMode="Client" GroupsDefaultExpanded="False"
            CommandItemDisplay="Top" DataKeyNames="ID">
            <GroupByExpressions>
                <radG:GridGroupByExpression>
                    <SelectFields>
                        <radG:GridGroupByField FieldAlias="CountryName" FieldName="CountryName" HeaderText="Country" />
                    </SelectFields>
                    <GroupByFields>
                        <radG:GridGroupByField FieldName="CountryName" FieldAlias="CountryName" HeaderText="Country" />
                    </GroupByFields>
                </radG:GridGroupByExpression>
            </GroupByExpressions>
            <CommandItemTemplate>
                <table width="100%" border="0">
                    <tr>
                        <td valign="top" align="right">
                            <a href="EditZone.aspx">
                                <img src="../RadControls/Grid/Skins/AddRecord.gif" align="absmiddle" />Add New</a>
                        </td>
                    </tr>
                </table>
            </CommandItemTemplate>
            <Columns>
                <radG:GridTemplateColumn AllowFiltering="False" Groupable="false" UniqueName="TemplateEditColumn"
                    HeaderText="Edit">
                    <ItemTemplate>
                        <a href="EditZone.aspx?zid=<%#DataBinder.Eval(Container.DataItem,"ID")%>">
                            <img src="../RadControls/Grid/Skins/Edit.gif" alt="Edit" title="Edit" style="border: 0px;" />
                        </a>
                    </ItemTemplate>
                    <HeaderStyle Width="30px" />
                </radG:GridTemplateColumn>
                <radG:GridBoundColumn SortExpression="Name" HeaderText="Name" HeaderButtonType="TextButton"
                    DataField="Name">
                </radG:GridBoundColumn>
                <radG:GridTemplateColumn HeaderText="Thumbnail">
                    <ItemTemplate>
                        <img src="../images/Img/<%#DataBinder.Eval(Container.DataItem,"Thumbnail")%>" />
                    </ItemTemplate>
                    <HeaderStyle Width="180px" />
                </radG:GridTemplateColumn>
                <radG:GridCheckBoxColumn DataField="IsActive" HeaderText="IsActive" SortExpression="IsActive"
                    UniqueName="IsActive" EditFormColumnIndex="1">
                    <HeaderStyle Width="100px" />
                </radG:GridCheckBoxColumn>
                <radG:GridButtonColumn UniqueName="DeleteColumn" Text="Delete" CommandName="Delete"
                    ButtonType="ImageButton" ImageUrl="../RadControls/Grid/Skins/Delete.gif" ConfirmText="Are you sure you want to delete this record?">
                    <HeaderStyle Width="30px" />
                </radG:GridButtonColumn>
            </Columns>
        </MasterTableView>
        <ClientSettings AllowGroupExpandCollapse="true">
            <Selecting AllowRowSelect="False" />
        </ClientSettings>
    </radG:RadGrid>
</asp:Content>
